]> dgit.raspbian.org Git - gnome-shell.git/commit
lookingGlass: Let history trim input
authorLucas Werkmeister <mail@lucaswerkmeister.de>
Thu, 11 Feb 2021 18:44:03 +0000 (19:44 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 13 Feb 2021 08:58:20 +0000 (08:58 +0000)
commitbbf1fc28ca8403d0a805ac4a35e5b23bb167c171
treecef849953fe6767fea9f8a88dbccb66a57f81a18
parentdf94055c58f312640a984ad7e94565850e0f458f
lookingGlass: Let history trim input

Checking whether the item is empty is now the history’s job, per the
previous two commits. The history also trims the input for us.

The effect of this is that we call _history.addItem(), and thereby move
to the end of the history, even if the input is empty (or consists only
of whitespace); clearing the input field and pressing Enter becomes a
quick way to jump back to the end of the history. (The current history
item is not overwritten if the input is empty.)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1653>
js/ui/lookingGlass.js